yum -y install wget \
gcc \
gcc-c++ \
libffi* \
zlib* \
git

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz

tar -xvJf Python-3.7.0.tar.xz

cd Python-3.7.0

./configure --prefix=/usr/local/python3 --enable-optimizations

make -j4 && make -j4 install

ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3

ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

pip3 install requests \
bs4 \
pymysql \
xlwt \
self \
simplejson